package com.example.myson;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import me.tangke.slidemenu.SlideMenu;

public class Main2Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_main2);
        SlideMenu slideMenu = new SlideMenu(this);
        setContentView(slideMenu);
        // Setup the content
        View contentView = new View(this);
        slideMenu.addView(contentView, new SlideMenu.LayoutParams(
                SlideMenu.LayoutParams.MATCH_PARENT, SlideMenu.LayoutParams.MATCH_PARENT,
                SlideMenu.LayoutParams.ROLE_CONTENT));

        // Setup the primary menu
        View primaryMenu = new View(this);
        slideMenu.addView(primaryMenu, new SlideMenu.LayoutParams(900,
                SlideMenu.LayoutParams.MATCH_PARENT, SlideMenu.LayoutParams.ROLE_PRIMARY_MENU));

        // Setup the secondary menu
        View secondaryMenu = new View(this);
        slideMenu.addView(secondaryMenu, new SlideMenu.LayoutParams(300,
                SlideMenu.LayoutParams.MATCH_PARENT, SlideMenu.LayoutParams.ROLE_SECONDARY_MENU));
    }
}
